package com.sdy.resdir.biz.service;

import com.sdy.common.model.BizException;
import com.sdy.resdir.biz.model.RdResourceApplicationDetail;
import com.sdy.mvc.service.BaseService;

import java.util.Date;
import java.util.Map;

/**
 * <p>
 * 申请资源详细（子） 服务类
 * </p>
 *
 * @author hyh
 * @since 2019-10-21
 */
public interface RdResourceApplicationDetailService extends BaseService<RdResourceApplicationDetail> {


    Boolean updateApplyDetail(RdResourceApplicationDetail rdResourceApplicationDetail, Integer userId, Date date) throws BizException;

    /**
     * 系只能流程配置模板
     * @param map
     * @param date
     * @param userId
     * @return
     * @throws Exception
     */
    Boolean addApprovalConfigDetail(Map<String, Object> map, Date date, Integer userId, Integer operateType) throws Exception;

    /**
     * 已上线资源申请单提交(单条独立申请)
     * @param rdResourceApplicationDetail
     * @return
     */
    Boolean saveApply(RdResourceApplicationDetail rdResourceApplicationDetail, Integer userId, String randomNum) throws BizException;
}
